package com.lee.spring.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import java.io.Serializable;

    /**
     * @author Lee
     */
    @Data
    @AllArgsConstructor
    @Slf4j
    public class Cat implements Serializable {
        private Integer id;
        private String name;
        private Integer gender;
        private Integer age;
        private String info;

        public Cat(){
            log.info("Cat被实例化...");
        }

        public Cat(String name){
            this.name = name;
        }

        public void init(){
                log.info("Cat类初始化...");
            }

        public void destroy(){
            System.out.println("destroy...");
        }
    }

